﻿<Window x:Class="Knowledgecast.Twitter.WPF.App.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:usercontrols="clr-namespace:Knowledgecast.Twitter.WPF.App"
    xmlns:twitterwpf="clr-namespace:Knowledgecast.Twitter.WPF;assembly=Knowledgecast.Twitter.WPF"
    Title="Twitterati" Loaded="Window_Loaded" SizeToContent="Width" Icon="/Knowledgecast.Twitter.WPF.App;component/Icons/twitter52.png">
    <Window.Resources>
        <Style x:Key="WinTweetButton" TargetType="Button">
            <Setter Property="Width" Value="50" />
        </Style>
    </Window.Resources>
    <Window.CommandBindings>
        <CommandBinding x:Name="Reply" Command="twitterwpf:TwitterCommands.ReplyMessage" Executed="Reply_Executed" />
        <CommandBinding x:Name="Retweet" Command="twitterwpf:TwitterCommands.Retweet" Executed="Retweet_Executed" />
        <CommandBinding x:Name="DirectMessage" Command="twitterwpf:TwitterCommands.DirectMessage" Executed="DirectMessage_Executed"/>
        <CommandBinding x:Name="OtherActions" Command="twitterwpf:TwitterCommands.OtherActions" Executed="OtherActions_Executed" />
        <CommandBinding x:Name="ShowUrl" Command="twitterwpf:TwitterCommands.ShowUrl" Executed="ShowUrl_Executed" />
    </Window.CommandBindings>
    <Grid SizeChanged="Grid_SizeChanged">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid Grid.Row="0">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">                
                <Button x:Name="btnTweet" Style="{StaticResource WinTweetButton}" Content="Tweet" Click="btnTweet_Click"  />
                <Button x:Name="btnAllFriends" Style="{StaticResource WinTweetButton}" Content="Friends" Click="btnAllFriends_Click" />
                <Button x:Name="btnReplies" Style="{StaticResource WinTweetButton}" Content="Replies" Click="btnReplies_Click" />
                <!--<Button x:Name="btnDirectMessages" Style="{StaticResource WinTweetButton}" Content="Direct Messages" />
                <Button x:Name="btnFavourites" Style="{StaticResource WinTweetButton}" Content="Favourites" />-->
                <!--<Button x:Name="btnGroup" Style="{StaticResource WinTweetButton}" Content="Group" />-->
                <Button x:Name="btnSearch" Style="{StaticResource WinTweetButton}" Content="Search" Click="btnSearch_Click" />
                <!--<Button x:Name="btnTwitScoop" Content="TwitScoop" />
                <Button x:Name="btn12Seconds" Content="12 Seconds" />
                <Button x:Name="btnStockTwits" Content="StockTwits" />
                <Button x:Name="btnFacebook" Content="Facebook" />-->
                <Button x:Name="btnLogout" Style="{StaticResource WinTweetButton}" Content="Logout" Click="btnLogout_Click" Visibility="Collapsed" />
            </StackPanel>
        </Grid>
        <Grid x:Name="gridTweet" Grid.Row="1" Height="50" Visibility="Collapsed">
            <usercontrols:StatusUpdate x:Name="ctrlStatusUpdate" />
        </Grid>
        <StackPanel x:Name="Main" Grid.Row="2" Orientation="Horizontal" />
        <Grid x:Name="gridLogin" Grid.Row="0" Grid.RowSpan="3" Grid.Column="0" Visibility="Collapsed">
            <Rectangle Fill="LightGray" Opacity="0.5" />
            <usercontrols:Login HorizontalAlignment="Stretch" VerticalAlignment="Stretch" LoginInformationEntered="LoginInformation" />
        </Grid>
    </Grid>
</Window>
